package com.itfreer.gis.map.style;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.itfreer.form.api.BaseDao;
import com.itfreer.form.api.BaseServiceImp;
import com.itfreer.gis.map.style.entity.MapStyleLayerEntity;
import com.itfreer.gis.map.style.dao.MapStyleLayerDao;

/**
 * 定义样式图层实现类
 */
@Component
@Service(interfaceClass = MapStyleLayerService.class, path = "gismapstylelayer")
public class MapStyleLayerServiceImp extends BaseServiceImp<MapStyleLayerEntity> implements MapStyleLayerService {

	@Autowired
	private MapStyleLayerDao dao;

	@Override
	protected BaseDao<MapStyleLayerEntity> getDao() {
		return dao;
	}

	/**
	 * 是否是树表
	 */
	protected boolean isTree() {
		return true;
	}

	/**
	 * 树的PID字段名
	 */
	protected String getTreePIDFieldName() {
		return "pid";
	}

}
